package com.yl.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lfs
 * @since 2021-01-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TActivity extends Model<TActivity> {

    private static final long serialVersionUID = 1L;

    @TableId("ACT_ID")
    private Long actId;

    /**
     * 1-1元购水，2-1元捐水，3-XX元购票
     */
    @TableField("ACT_TYPE")
    private Integer actType;

    @TableField("ACT_NAME")
    private String actName;

    @TableField("START_TIME")
    private LocalDateTime startTime;

    @TableField("END_TIME")
    private LocalDateTime endTime;

    /**
     * 0-无效，1-有效
     */
    @TableField("IS_VALID")
    private Integer isValid;

    @TableField("CREATOR_ID")
    private BigDecimal creatorId;

    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @TableField("PRICE")
    private BigDecimal price;

    @TableField("VOUCHER")
    private BigDecimal voucher;

    @TableField("AMOUNT")
    private BigDecimal amount;

    @TableField("AVAIL_COUPON")
    private BigDecimal availCoupon;

    @TableField("ACT_ENTERPRISE_ID")
    private Long actEnterpriseId;

    @Override
    protected Serializable pkVal() {
        return this.actId;
    }

}
